<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/Web/04JSP/02company/connect.js"></script>
</head>
<body>
	<%
		String sessionMid = (String)session.getAttribute("sessionMid");   /* 처음엔 항상 널값. 값이 없어서.  */
	
	%>
 	<div id= 'login'>
 		<!--jsp process  -->
 		<% if(sessionMid == null){ %>
 		<form action="/Web/04JSP/01Member/login.jsp" name="frm" method="post">
 			<label> I D   </label> <input type="text" size="6" name='m_id'>
 			<label> PassWord </label><input type="password" size="16" name='m_pw'>
 			<input type="button" value="로그인" id="btnlogin">
 		</form> 		
 		<%} else{ %>
 		<input type="button" value="logout" id="btnlogout">
 		[<%=sessionMid%>님 로그인 되셨습니다.]
 		<%} 
 	%>
 	</div>
</body>
<script type="text/javascript">connectInit();</script>
</html>